#include "memmap.h"
#include "putchar.h"
#include <string.h>
#include <stdio.h>
sts putchar_init(void)
{
    return OK;
}

sts putchar_write_b(uint32_t addr, uint8_t data)
{
    printf("%c", data);
    return OK;
}

struct device putchar_dev = {
    .id = PUTCHAR_ID,
    .init = putchar_init,
    .read_b = NULL,
    .read_h = NULL,
    .read_w = NULL,
    .write_b = putchar_write_b,
    .write_h = NULL,
    .write_w = NULL,
};
